using System;
using System.Collections.Generic;
using System.Text;
using System.IO;

namespace FicherosSecuenciales
{
    class Program
    {
        static public void LeerPorCaracter() {
            StreamReader st = new StreamReader("pepe.txt");
            while (!st.EndOfStream)
            {
                char linea = (char)st.Read();
                Console.Write(linea);
            }
            st.Close();
        }
        static public void LeePorLineas() {
            StreamReader st = new StreamReader("pepe.txt");
            while (!st.EndOfStream)
            {
                String linea = st.ReadLine();
                Console.WriteLine(linea);
            }
            st.Close();
        }
        static public void LeerDeGolpe() {
            StreamReader st = new StreamReader("pepe.txt");
            string str = st.ReadToEnd();
            Console.WriteLine(str);
            st.Close();
        }
        static public void Escribir() {
            StreamWriter sw = new StreamWriter("fichero2.txt");
            sw.WriteLine("david");
            sw.Close();
        }
        static public void Escribir_Sin_Cerrar() {
            StreamWriter sw = new StreamWriter("fichero2.txt");
            sw.WriteLine("david");
            sw.Flush();
        }
        static void Main(string[] args)
        {
            
        }
    }
}
